package com.open.capacity.nk.service;

import com.open.capacity.nk.entity.NkDirectpaymentreceipt;

import com.open.capacity.commons.PageResult;
import com.open.capacity.vo.TreeVo;
import javafx.util.Pair;

import java.util.Map;
import java.util.List;

/**
 * @author
 * @email
 * @date 2023-03-01 20:42:42
 */
public interface NkDirectpaymentreceiptService {
    /**
     * 本地保存
     */
    int syncData();

    /**
     * 添加
     *
     * @param nkDirectpaymentreceipt
     */
    int save(NkDirectpaymentreceipt nkDirectpaymentreceipt);


    /**
     * 删除
     *
     * @param id
     */
    int delete(String id);


    /**
     * 查询记录
     *
     * @param id
     * @return
     */
    NkDirectpaymentreceipt findById(String id);

    /**
     * 分页
     *
     * @param params
     * @return
     */
    PageResult<NkDirectpaymentreceipt> pageAll(Map<String, Object> params);

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<NkDirectpaymentreceipt> findAll(Map<String, Object> params);


    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<NkDirectpaymentreceipt> findDepartmentData(Map<String, Object> params);

    /**
     * 获取单位列表
     *
     * @param params
     * @return
     */
    List<TreeVo>  findOrganization(Map<String, Object> params);
}

